class Achievement {
    Achievement({
        this.name,
        this.description,
        this.points,
        this.image,
        this.required,
    });

    String? name;
    String? description;
    int? points;
    String? image;
    int? required;

    factory Achievement.fromJson(Map<String, dynamic> json) => Achievement(
        name: json["name"],
        description: json["description"],
        points: json["points"],
        image: json["image"],
        required: json["required"],
    );

    Map<String, dynamic> toJson() => {
        "name": name,
        "description": description,
        "points": points,
        "image": image,
        "required": required,
    };
}